<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>请用if来实现上面的效果</title>
</head>
<body>
    <script>
        var name;
        if (name === 'jt') {
            alert('金团网');
        } else if (name === 'ejt') {
            alert('金团相相贷');
        } else if (name === 'ejin') {
            alert('网上综合金融体验馆');
        } else {
            alert('金团网络典当');
        }
    </script>
</body>
</html>